package io.finer.erp.jeecg.bas.service;

import io.finer.erp.jeecg.bas.entity.ZrkUserCustomer;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jeecg.common.api.vo.Result;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 业务员客户分配表
 * @Author: jeecg-boot
 * @Date:   2020-08-22
 * @Version: V1.0
 */
public interface IZrkUserCustomerService extends IService<ZrkUserCustomer> {
	ZrkUserCustomer getByCustomerId(String customId);
	
	/**
	 * @Description 业务员分配客户
	 * @param zrkUserCustomer
	 * @return
	 * Create at: 2021-09-24 14:54:37
	 * @author: xzs
	 * Revision:
	 *    2021-09-24 14:54:37 - first revision by xzs
	 *
	 */
	boolean saveUserCustomer(ZrkUserCustomer zrkUserCustomer);
	/**
	 * @Description 修改业务员分配客户
	 * @param zrkUserCustomer
	 * @return
	 * Create at: 2021-09-24 15:17:15
	 * @author: xzs
	 * Revision:
	 *    2021-09-24 15:17:15 - first revision by xzs
	 *
	 */
	boolean updateUserCustomer(ZrkUserCustomer zrkUserCustomer);
	
	/**
	 * @Description 业务员客户分配表-通过id删除
	 * @param id
	 * @return
	 * Create at: 2021-09-24 15:22:24
	 * @author: xzs
	 * Revision:
	 *    2021-09-24 15:22:24 - first revision by xzs
	 *
	 */
	boolean removeUserCustomer(String id);
	
	/**
	 * @Description 业务员客户分配表-批量删除
	 * @param ids
	 * @return
	 * Create at: 2021-09-24 15:30:20
	 * @author: xzs
	 * Revision:
	 *    2021-09-24 15:30:20 - first revision by xzs
	 *
	 */
	boolean removeBatchUserCustomer(String ids);
	
	/**
	 * @Description 通过excel导入数据
	 * @param request
	 * @param response
	 * @param clazz
	 * @return
	 * Create at: 2021-09-24 15:54:34
	 * @author: xzs
	 * Revision:
	 *    2021-09-24 15:54:34 - first revision by xzs
	 *
	 */
	Result<?> importExcel(HttpServletRequest request, HttpServletResponse response, Class<ZrkUserCustomer> clazz);
}
